<#assign pojo=oneToManyPojo.getOne()>
<#assign many=oneToManyPojo.getMany()>
<#assign ones=oneToManyPojo.getOnes()>
<#assign fields=pojo.getFilterdPojoFields()>
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>
<#assign declarationNameFirstLetterLower = pojo.importType(pojo.getDeclarationNameFirstLetterLower())>
<#assign realPackageAndClassPath = "${pojo.getRealPackageAndClassPath()}">
<#assign masterid = pojo.getDeclarationNameFirstLetterLower()+"Id">
<div [hidden]="!(currentStep==='list')">
  <app-${declarationNameFirstLetterLower}-filter
    #${declarationNameFirstLetterLower}Filter
    (onSearch)="onSearch($event.params)">
  </app-${declarationNameFirstLetterLower}-filter>
  <div style="margin-bottom: 16px;margin-top: 16px;">
    <button nz-button [nzType]="'primary'" (click)="onSearch()">onSearch</button>
    <button nz-button [nzType]="'primary'" (click)="onAdd()">Add</button>
    <button nz-button [nzType]="'primary'" (click)="onEditSelect()">edit</button>
    <button nz-button [nzType]="'primary'" (click)="onRemoveSelections()">remove</button>
  </div>
  <app-${declarationNameFirstLetterLower}-grid
    #${declarationNameFirstLetterLower}Grid
    (onEdit)="onEdit($event.entity)"
    (onRemove)="onRemove($event.entity)"
    (onProject)="onProject($event.entity)">
  </app-${declarationNameFirstLetterLower}-grid>
</div>
<app-${declarationNameFirstLetterLower}-form
  #${declarationNameFirstLetterLower}Form
  *ngIf="currentStep==='form'"
  [(entity)]="currentSelection"
  (onOk)="onOk($event.entity)"
  (onCancel)="onCancel()"
></app-${declarationNameFirstLetterLower}-form>
